import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

const routes = new Router({
  routes: [
    {
      path:'/login',
      name:'login',
      component:() => import('@/views/Login/')
    },
    {
      path:'/',
      component:() => import('@/views/Layout/'),
      children:[
        {
          path:'',
          name:'home',
          component:() => import('@/views/Home/')
        },
        {
          path:'/qa',
          name:'qa',
          component:() => import('@/views/Qa/')
        },
        {
          path:'/video',
          name:'video',
          component:() => import('@/views/Video/')
        },
        {
          path:'/my',
          name:'my',
          component:() => import('@/views/My/')
        },
      ]
    }
  ]
})

export default routes